/*
 * This file is part of ksPlatform
 * 
 * Copyright (c) 2014-2015
 * 
 * This file is dual-licensed under the AGPLv3 (http://www.gnu.org/licenses/agpl-3.0.html) 
 * 
 * If you are unsure which license is appropriate for your use, please contact the sales department
 * at 97041437@qq.com.
 */
package cn.com.ksplatform.welcome.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.com.ksplatform.base.BaseController;
import cn.com.ksplatform.common.util.SystemStatu;
import cn.com.ksplatform.core.context.PlatformContext;

@Controller
@RequestMapping("welcome")
public class WelComeController extends BaseController{
	@RequestMapping("go")
	private String go(){
		//系统没安装默认进入安装界面
		if(PlatformContext.SYSTEMSTATU.equals(SystemStatu.NOT_INSTALL)){
			return "redirect:/view/install.vm";
		}else{
			//获取参数 进入制定页面
			return "redirect:/view/modules/system/index.vm";
		}
	}
}
